<template>
  <div id="HomeRule">
    <home-notice-head/>
    <div class="home_rule_box">
      <div class="rule_left">
        <img src="https://www.szlib.com/Content/images/jygzZhuangshi.png">
      </div>
      <div class="rule_right">
        <h2>图书借阅规则</h2>
        <div v-for="(item,key,index) of borrowsList" :key="index">
          <h3>{{index+1}}.{{key}}</h3>
          <ul>
            <li v-for="(item2,index) of item" :key="index">({{index+1}}).{{item2.title}}</li>
          </ul>
        </div>
      </div>
    </div>

    <div class="home_rule_footer">
      <img src="https://www.szlib.com/Content/images/stgzBottomPic2.png">
    </div>
  </div>
</template>

<script>
import HomeNoticeHead from "../../components/Home/HomeNoticeHead";
export default {
  name: "HomeRule",
  components: {HomeNoticeHead},
  data(){
    return{
      borrowsList:{
        "图书出借册数与借期":[
          {title:"凭读者证借阅图书，每证可同时借阅图书10册、现刊2册、音像资料10张（总价不超过500元)",date:"2021-11-18"},
          {title:"凭读者证借阅图书，每证可同时借阅图书10册、现刊2册、音像资料10张（总价不超过500元)",date:"2021-11-18"},
          {title:"凭读者证借阅图书，每证可同时借阅图书10册、现刊2册、音像资料10张（总价不超过500元)",date:"2021-11-18"},
          {title:"凭读者证借阅图书，每证可同时借阅图书10册、现刊2册、音像资料10张（总价不超过500元)",date:"2021-11-18"},
          {title:"凭读者证借阅图书，每证可同时借阅图书10册、现刊2册、音像资料10张（总价不超过500元)",date:"2021-11-18"},
          {title:"凭读者证借阅图书，每证可同时借阅图书10册、现刊2册、音像资料10张（总价不超过500元)",date:"2021-11-18"},
        ],
        "2021-10":[
          {title:"图书馆开放",date:"2021-10-18"},
          {title:"图书馆开放",date:"2021-10-18"},
          {title:"图书馆开放",date:"2021-10-18"},
          {title:"图书馆开放",date:"2021-10-18"},
          {title:"图书馆开放",date:"2021-10-18"},
        ],
        "2021-09":[
          {title:"图书馆开放",date:"2021-09-18"},
          {title:"1231213211",date:"2021-09-18"},
          {title:"图书馆开放",date:"2021-09-18"},
          {title:"图书馆开放",date:"2021-09-18"},
          {title:"图书馆开放",date:"2021-09-18"},
        ]
      }
    }
  }
}
</script>

<style scoped>
.home_rule_box{
  display: flex;
  padding: 20px 10px;
}
.rule_left{
  width: 350px;
}
.rule_left img{
  width: 100%;
}
.rule_right{
  flex: 1;
  margin-left: 30px;
}
.rule_right h2{
  text-align: center;
  line-height: 50px;
}
.rule_right h3{
  line-height: 30px;
  font-weight: 400;
}
.rule_right li{
  line-height: 50px;
  font-size: 16px;
  font-weight: 100;
}
.home_rule_footer{
  height: 200px;
  text-align: right;
}
.home_rule_footer img{
  height: 100%;
}
</style>
